// pages/movementSelection/movementSelection.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      motionData:[
        '胸肌',
        '肩部肌群',
        '背部肌群',
        '手臂',
        '臀部肌群',
        '腿部肌群',
        '腰腹肌群',
      ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  toDetailMovement:function(e){
    const index = e.currentTarget.dataset.index;
    const selectMotion = this.data.motionData[index];
    wx.setStorageSync("selectMotion", selectMotion);
    wx.navigateTo({
      url: '/pages/detailMovements/detailMovements',
    })
  }
})